﻿@model FantasyDraft2.Models.DraftViewModel

@{
    ViewBag.Title = "Draft";
}

<h2>Set Up Draft</h2>

@using (Html.BeginForm())
{
    <div><b>@Model.message</b></div>
    <table>
        <tr>
            <td>
                @Html.DropDownListFor(x => x.teamid, new SelectList(Model.teams, "TeamId", "TeamName"))
            </td>
            <td>
                @Html.DropDownListFor(x => x.playerid, new SelectList(Model.availablePlayers, "PlayerId", "Name"))
            </td>
            <td>
                <input type="submit" value="Go" />
            </td>
        </tr>
    </table>
}
